import { defineStore } from "pinia";
import { getFis } from "@/api/fis";
import { onMounted, ref } from 'vue'

export const useFiStore = defineStore('fis', () => {
  const fisData = ref([])
  // 参数
  const data = {
    "page": 0,
    "size": 10,
    "sort": [
      "timeJit,asc"
    ]
  }

  // 获取大表数据
  const getFisData = async () => {
    let res = await getFis(data)
    fisData.value = res.content
  }

  onMounted(() => {

    getFisData()
  })
  return {
    fisData,

  }
})